package com.changgou.consume.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    /**
     * 订单秒杀队列
     */
    public static final String SECKILL_ORDER_KEY = "seckill_order";

    @Bean(SECKILL_ORDER_KEY)
    public Queue SECKILL_ORDER_KEY() {
        return new Queue(SECKILL_ORDER_KEY, true);
    }

}

